
<link href="../addons/jy_weishop/custom/templates/mobile/css/verifyorder.css?v=2.0.3"rel="stylesheet"type="text/css"/>

<div class='fui-page fui-page-current order-detail-page'>
    <div class="fui-header fui-header-success">
        <div class="fui-header-left">
            <a class="back btn-back"></a>
        </div>
        <div class="title">订单详情</div>
        <div class="fui-header-right"></div>
    </div>
    <div class='fui-content'>

        <div class="fui-list-group result-list nomargin">
            <div class="fui-list order-status">
                <div class="fui-list-inner">
                    <div ng-if="pagedata.item.status==3" class="title">
                       
                            交易已完成 
                    </div>
                    <div class="text">订单金额: ¥ {{pagedata.item.price}}<span></span></div>
                </div>
                <div class="fui-list-media">
                    <i class="icon icon-money"></i>
                </div>
            </div>
        </div>

        <div class="fui-cell-group info-cell-group" style="table-layout:fixed;">
            <div class="fui-cell">
                <div class="fui-cell-label">订单编号:</div>
                <div class="fui-cell-info"></div>
                <div class="fui-cell-remark noremark black">{{pagedata.item.ordersn}}</div>
            </div>
            <div class="fui-cell">
                <div class="fui-cell-label">订单状态:</div>
                <div class="fui-cell-info"></div>
                <div class="fui-cell-remark noremark">
                
                        <span ng-if="pagedata.item.status==3" class="fui-label fui-label-success round">交易完成</span>
                  
                </div>
            </div>
            <div class="fui-cell">
                <div class="fui-cell-label">支付状态:</div>
                <div class="fui-cell-info"></div>
                <div ng-if="pagedata.item.paytype == 0" class="fui-cell-remark noremark">未支付 </div>
                <div ng-if="pagedata.item.paytype == 1" class="fui-cell-remark noremark">余额支付 </div>
                <div ng-if="pagedata.item.paytype == 11" class="fui-cell-remark noremark">后台付款 </div>
                <div ng-if="pagedata.item.paytype == 21" class="fui-cell-remark noremark">微信支付 </div>
                <div ng-if="pagedata.item.paytype == 22" class="fui-cell-remark noremark">支付宝支付 </div>
                <div ng-if="pagedata.item.paytype == 23" class="fui-cell-remark noremark">银联支付 </div>
                <div ng-if="pagedata.item.paytype == 3" class="fui-cell-remark noremark">货到付款 </div>                         
            </div>
            <div class="fui-cell">
                <div class="fui-cell-label">配送方式:</div>
                <div class="fui-cell-info"></div>
                <div class="fui-cell-remark noremark black">
                    线下核销
                </div>
            </div>

           
            <div ng-if="!empty(pagedata.saler)" class="fui-cell">
                <div class="fui-cell-label">核销人:</div>
                <div class="fui-cell-info"></div>
                <div class="fui-cell-remark noremark black">{{pagedata.saler.nickname}}({{pagedata.saler.name}})</div>
            </div>

                <div ng-if="pagedata.item.verified==1" class="fui-cell">
                    <div class="fui-cell-label">核销时间:</div>
                    <div class="fui-cell-info"></div>
                    <div class="fui-cell-remark noremark black">{{pagedata.item.verifytime}}</div>
                </div>
           

        </div>

        <div class="fui-cell-group">
            <div class="fui-cell">
                <div class="fui-cell-info"><i class="icon icon-card"></i> 会员信息</div>
            </div>
        </div>
        <div class="fui-list-group nomargin">
            <a class="fui-list" href="#" data-nocache="true">
                <div class="fui-list-media">
                    <img src="{{pagedata.member.avatar}}" class="round">
                </div>
                <div class="fui-list-inner">
                    <div class="title">{{ifelse(!pagedata.member.nickname,'未更新',{{pagedata.member.nickname}})}}<small ng-if="pagedata.member.realname">({{pagedata.member.realname}})</small></div>
                    <div class="subtitle">
                        <div ng-if="pagedata.member.mobile" class="total half">手机号:未设置</div>
                        <div ng-if="pagedata.member.mobile" class="total half">手机号:{{pagedata.member.mobile}}</div>
						<div ng-if="!pagedata.member.weixin" class="total half">手机号:未设置</div>
                        <div ng-if="pagedata.member.weixin" class="total half">手机号:{{pagedata.member.weixin}}</div>
                    </div>
                </div>
            </a>
        </div>

        <!-- 订单商品明细 -->
            <div ng-if="pagedata.item.goods" class="fui-cell-group">
                <div class="fui-cell">
                    <div class="fui-cell-info"><i class="icon icon-gifts"></i> 订单商品</div>
                    <div class="fui-cell-remark noremark"><small>(价格单位: 元)</small></div>
                </div>
            </div>
            <div class="fui-list-group goods-list-group nomargin">
            
                    <div ng-repeat="og in pagedata.item.goods" class="fui-list goods-list check-param" data-action="diyform-goods-{$og['id']}">
                        <a class="fui-list-media" ng-click="access_json('/mmanage.goods/edit/id='+op.id)">
                            <img ng-src="{{tomedia(og.image)}}" class="round" onerror="this.src='../addons/jy_weishop/images/nopic100.jpg';" />
                        </a>
                        <div class="fui-list-inner">
                            <div class="title">
                                <span ng-if="og.diyformdata && og.diyformdata != 'false'" class="fui-label fui-label-warning round">表单</span>
                                <span ng-if="pagedata.goods.seckill_task" class="fui-label fui-label-danger round">{{pagedata.goods.seckill_task.tag}}</span>
								<span ng-if="pagedata.goods.seckill_room" class="fui-label fui-label-primary">{{ifelse(pagedata.goods.seckill_room.tag,{{pagedata.goods.seckill_room.tag}},{{pagedata.goods.seckill_room.title}})}}</span>
                                <label ng-if="pagedata.goods.invoice" class='fui-label fui-label-success round'>支持开票</label>
                                {{og.title}}</div>
                            <div class="text goodstitle">规格: {{og.optionname}}
							<span ng-if="og.goodssn">编码: {{og.goodssn}}</span> 
							<span ng-if="og.productsn">条码: {{og.productsn}}</span> 
							</div>
                            <div class="subtitle">
                                <div class="total half">单价/数量: {{og.marketprice}}x{{og.total}}</div>
                                <div ng-if="pagedata.item.ispackage" class="total half text-right">商品价格: &yen;{{og.marketprice}}</div>
                                <div ng-if="!pagedata.item.ispackage" class="total half text-right">折扣前/后:&yen;{{og.orderprice}}/{{og.realprice}}</div>
                            </div>
                        </div>
                    </div>
              
            </div>
     

        <!-- 订单价格小计 -->
        <div class="fui-cell-group">
            <div class="fui-cell">
                <div class="fui-cell-label gray">商品小计</div>
                <div class="fui-cell-info"></div>
                <div class="fui-cell-remark noremark black">￥{{pagedata.item.goodsprice}}</div>
            </div>

				    <div ng-if="!pagedata.item.ispackage">
                    <div ng-if="pagedata.item.taskdiscountprice > 0" class="fui-cell">
                        <div class="fui-cell-label auto gray">任务活动优惠</div>
                        <div class="fui-cell-info"></div>
                        <div class="fui-cell-remark noremark black">-￥{{pagedata.item.taskdiscountprice}}</div>
                    </div>
               
              
                    <div ng-if="pagedata.item.lotterydiscountprice > 0" class="fui-cell">
                        <div class="fui-cell-label auto gray">游戏活动优惠</div>
                        <div class="fui-cell-info"></div>
                        <div class="fui-cell-remark noremark black">-￥{{pagedata.item.lotterydiscountprice}}</div>
                    </div>
              
               
                    <div ng-if="pagedata.item.discountprice > 0" class="fui-cell">
                        <div class="fui-cell-label gray">会员折扣</div>
                        <div class="fui-cell-info"></div>
                        <div class="fui-cell-remark noremark black">-￥{{pagedata.item.discountprice}}</div>
                    </div>
                    <div ng-if="pagedata.item.deductprice > 0"  class="fui-cell">
                        <div class="fui-cell-label gray">积分抵扣</div>
                        <div class="fui-cell-info"></div>
                        <div class="fui-cell-remark noremark black">-￥{{pagedata.item.deductprice}}</div>
                    </div>
                    <div ng-if="pagedata.item.deductenough > 0"  class="fui-cell">
                        <div class="fui-cell-label auto gray">商城满额立减</div>
                        <div class="fui-cell-info"></div>
                        <div class="fui-cell-remark noremark black">-￥{{pagedata.item.deductenough}}</div>
                    </div>
                    <div ng-if="pagedata.item.merchdeductenough > 0"  class="fui-cell">
                        <div class="fui-cell-label auto gray">商户满额立减</div>
                        <div class="fui-cell-info"></div>
                        <div class="fui-cell-remark noremark black">-￥{{pagedata.item.merchdeductenough}}</div>
                    </div>
                    <div ng-if="pagedata.item.couponprice > 0" class="fui-cell">
                        <div class="fui-cell-label gray">优惠券优惠</div>
                        <div class="fui-cell-info"></div>
                        <div class="fui-cell-remark noremark black">-￥{{pagedata.item.couponprice}}</div>
                    </div>
                    <div ng-if="pagedata.item.isdiscountprice > 0" class="fui-cell">
                        <div class="fui-cell-label gray">促销优惠</div>
                        <div class="fui-cell-info"></div>
                        <div class="fui-cell-remark noremark black">-￥{{pagedata.item.isdiscountprice}}</div>
                    </div>
                    <div ng-if="pagedata.item.buyagainprice > 0" class="fui-cell">
                        <div class="fui-cell-label auto gray">重复购买优惠</div>
                        <div class="fui-cell-info"></div>
                        <div class="fui-cell-remark noremark black">-￥{{pagedata.item.buyagainprice}}</div>
                    </div>
					</div>
                <div ng-if="pagedata.item.changeprice != 0" class="fui-cell">
                    <div class="fui-cell-label gray">卖家改价</div>
                    <div class="fui-cell-info"></div>
                    <div class="fui-cell-remark black">
                        <span ng-if="pagedata.item.changeprice>0" style='color:green'>
						-￥{{pagedata.item.changeprice}}
						</span>
						
						
						<span ng-if="pagedata.item.changeprice<=0" style='color:red'>
						+￥{{pagedata.item.changeprice}}</span>
                    </div>
                </div>
            

            <div class="fui-cell">
                <div class="fui-cell-label auto gray">实付费</div>
                <div class="fui-cell-info"></div>
                <div class="fui-cell-remark noremark black">￥{{pagedata.item.price}}</div>
            </div>
        </div>

            <div ng-if="pagedata.coupon" class="fui-cell-group">
                <div class="fui-cell">
                    <div class="fui-cell-info"><i class="icon icon-gifts"></i> 优惠券优惠: {{pagedata.coupon.title}}</div>
                </div>
                <div class="fui-cell">
                    <div class="fui-cell-label">优惠方式</div>
                    <div ng-if="pagedata.coupon.backtype ==0" class="fui-cell-info">立减 {{pagedata.coupon.deduct}} 元  </div>
                    <div ng-if="pagedata.coupon.backtype ==1" class="fui-cell-info">  打 {{pagedata.coupon.discount}} 折  </div>
                    <div ng-if="pagedata.coupon.backtype ==2 && pagedata.coupon.backmoney > 0" class="fui-cell-info">返 {{pagedata.coupon.backmoney}} 余额  </div>
                    <div ng-if="pagedata.coupon.backtype ==2 && pagedata.coupon.backcredit > 0" class="fui-cell-info">返 {{pagedata.coupon.backcredit}} 积分  </div>
                    <div ng-if="pagedata.coupon.backtype ==2 && pagedata.coupon.backredpack > 0" class="fui-cell-info">返 {{pagedata.coupon.backredpack}} 红包  </div>
                   
                </div>
                    <div ng-if="pagedata.coupon.backtype ==2" class="fui-cell">
                        <div class="fui-cell-label">返利方式</div>
                        <div ng-if="pagedata.item.backwhen==0" class="fui-cell-info">  交易完成后(过退款期限) </div>
                        <div ng-if="pagedata.item.backwhen==1" class="fui-cell-info">    订单完成后(收货后) </div>
                        <div ng-if="pagedata.item.backwhen!=1 && pagedata.item.backwhen!=0" class="fui-cell-info">     订单付款后 </div>
                    </div>
                    <div class="fui-cell">
                        <div class="fui-cell-label">返利情况</div>
                        <div ng-if="!pagedata.coupon.back" class="fui-cell-info">未返利</div>
                        <div ng-if="pagedata.coupon.back" class="fui-cell-info">已返利</div>
                    </div>
                   
                        <div ng-if="!pagedata.coupon.back" class="fui-cell">
                            <div class="fui-cell-label">返利时间</div>
                            <div class="fui-cell-info">{{pagedata.coupon.backtime}}</div>
                        </div>
                    
              
            </div>
     

        <div class="fui-cell-group info-cell-group" style="table-layout:fixed;">
     
                <div ng-if="pagedata.item.status >=0" class="fui-cell">
                    <div class="fui-cell-label">下单时间:</div>
                    <div class="fui-cell-info">{{pagedata.item.createtime}}</div>
                </div>
      
           
                <div ng-if="pagedata.item.status >=1" class="fui-cell">
                    <div class="fui-cell-label">支付时间: </div>
                    <div class="fui-cell-info">{{pagedata.item.paytime}}</div>
                </div>
           

            
                <div ng-if="pagedata.item.status >=3" class="fui-cell">
                    <div class="fui-cell-label">完成时间: </div>
                    <div class="fui-cell-info">{{pagedata.item.finishtime}}</div>
                </div>
        </div>

            <div ng-if="pagedata.order_fields && pagedata.order_data" class="fui-cell-group">
                <div class="fui-cell">
                    <div class="fui-cell-info"><i class="icon icon-form"></i> 统一下单信息</div>
                </div>
         
                
                    <div ng-repeat="(key,value)in pagedata.order_fields" class="fui-cell">
                        <div class="fui-cell-label">{{value.tp_name}}</div>
                        <div class="fui-cell-info"></div>
                        <div class="fui-cell-remark noremark">{template 'diyform/mdiyform'}</div>
                    </div>
                
            </div>
    

        <div class="fui-title center">更多信息请至PC端查看</div>
    </div>

</div>